package com.kelp.codetoolkit.enums

/**
 * @author: liuyuebai
 * @date: 2024/8/12 19:36
 * @description:
 */
enum class XmlTemplateInfoEnum(val templateKey:String, val templatePath:String, val packageName:String, val templateSuffix:String) {

    MYBATIS_PLUS_XML("MyBatis-Plus","/template/mybatis-plus/mapper.xml.vm","mapper","Mapper.xml"),
    MYBATIS_XML("MyBatis","/template/mybatis/mapper.xml.vm","mapper","Mapper.xml"),
    ;

    companion object{
        fun get(templateKey: String):List<XmlTemplateInfoEnum>{
            val result = mutableListOf<XmlTemplateInfoEnum>()
            for (templatePathEnum in values()){
                if (templatePathEnum.templateKey == templateKey){
                    result.add(templatePathEnum)
                }
            }
            return result
        }
    }
}